package processor;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

import prefix.duydo.repository.JpaRepository;
import prefix.duydo.repository.Repository;


public class GenericProcessor {
	protected  Repository repo;
	protected EntityManager em;
	private static EntityManagerFactory factory = Persistence.createEntityManagerFactory("P2PDEVUnit");
	public GenericProcessor(){
        em = factory.createEntityManager();
        repo = new JpaRepository(em);
	}
}
